package com.woohua.thread.executor;

/***
 * @title Customer
 * @description
 * @author woo hua
 * @version 1.0.0
 * @create 2023/3/17 15:57
 **/
public class Customer implements Runnable{

    // 顾客名
    private final String customerName;

    // 制作陶器名
    private final String porcelainName;

    public Customer(String customerName, String porcelainName) {
        this.customerName = customerName;
        this.porcelainName = porcelainName;
    }

    @Override
    public void run() {

        makePorcelain();
    }

    /**
     * 制作陶器
     */
    private void makePorcelain() {
        System.out.println(Thread.currentThread().getName() + ": " + customerName + " made a " + porcelainName +  ".");
    }
}
